export default {
    report: {
        "dateList": ["$ALL",
            "2021-09-20",
            "2021-09-21",
            "2021-09-22",
            "2021-09-23",
            "2021-09-24"],
        "maxTime": [[294066.0,
            40744.0,
            38790.0,
            30668.0,
            59950.0,
            32787.0],
            [264527.0,
                50719.0,
                25076.0,
                46662.0,
                45497.0,
                38236.0],
            [247648.0,
                25591.0,
                32279.0,
                34521.0,
                28647.0,
                26368.0],
            [340193.0,
                14980.0,
                18270.0,
                29455.0,
                45828.0,
                6016.0]],
        "minTime": [[457.0,
            1310.0,
            634.0,
            517.0,
            457.0,
            883.0],
            [349.0,
                824.0,
                349.0,
                1212.0,
                403.0,
                596.0],
            [1239.0,
                1586.0,
                2021.0,
                1239.0,
                1659.0,
                3569.0],
            [426.0,
                14980.0,
                18270.0,
                4935.0,
                426.0,
                6016.0]],
        "uniqavgTime": [[30736.82,
            12838.63,
            16674.0,
            15664.83,
            20257.13,
            14871.17],
            [35267.87,
                15264.05,
                12174.22,
                16511.69,
                15442.15,
                15514.92],
            [39083.84,
                10056.0,
                12587.91,
                10675.3,
                11945.1,
                12969.11],
            [57121.71,
                14980.0,
                18270.0,
                17385.8,
                22752.67,
                6016.0]],
        "medianTime": [[15696.0,
            9645.0,
            11105.0,
            18116.0,
            18332.0,
            15696.0],
            [15805.0,
                12999.0,
                15558.0,
                14086.0,
                10046.0,
                17057.0],
            [12723.0,
                9378.0,
                13231.0,
                8762.0,
                12723.0,
                11968.0],
            [22004.0,
                14980.0,
                18270.0,
                16206.0,
                22004.0,
                6016.0]],
        "quartile1": [[6175.0,
            6175.0,
            2577.0,
            5140.0,
            6971.0,
            4150.0],
            [7927.0,
                9826.0,
                2424.0,
                5209.0,
                6726.0,
                3496.0],
            [5380.0,
                2633.0,
                6231.0,
                3893.0,
                4024.0,
                6785.0],
            [12794.0,
                14980.0,
                18270.0,
                12794.0,
                426.0,
                6016.0]],
        "quartile3": [[25919.0,
            17089.0,
            31974.0,
            23037.0,
            26451.0,
            24543.0],
            [32673.0,
                20821.0,
                17260.0,
                19502.0,
                30319.0,
                27998.0],
            [25591.0,
                21746.0,
                16328.0,
                13308.0,
                18434.0,
                19484.0],
            [45828.0,
                14980.0,
                18270.0,
                23539.0,
                45828.0,
                6016.0]],
        "avgTime": [[31873.67,
            12838.63,
            16674.0,
            15664.83,
            20176.47,
            14871.17],
            [35267.87,
                15264.05,
                12174.22,
                16511.69,
                15442.15,
                15514.92],
            [39083.84,
                10056.0,
                12587.91,
                10675.3,
                11945.1,
                12969.11],
            [57121.71,
                14980.0,
                18270.0,
                17385.8,
                22752.67,
                6016.0]],
        "cnt": [[90.0,
            19.0,
            11.0,
            18.0,
            17.0,
            18.0],
            [87.0,
                19.0,
                9.0,
                13.0,
                20.0,
                12.0],
            [58.0,
                8.0,
                11.0,
                10.0,
                10.0,
                9.0],
            [14.0,
                1.0,
                1.0,
                5.0,
                3.0,
                1.0]],
        "uniqavgCnt": [[1.02,
            1.0,
            1.0,
            1.0,
            1.06,
            1.0],
            [1.0,
                1.0,
                1.0,
                1.0,
                1.0,
                1.0],
            [1.0,
                1.0,
                1.0,
                1.0,
                1.0,
                1.0],
            [1.0,
                1.0,
                1.0,
                1.0,
                1.0,
                1.0]],
        "people": [[88.0,
            19.0,
            11.0,
            18.0,
            16.0,
            18.0],
            [87.0,
                19.0,
                9.0,
                13.0,
                20.0,
                12.0],
            [58.0,
                8.0,
                11.0,
                10.0,
                10.0,
                9.0],
            [14.0,
                1.0,
                1.0,
                5.0,
                3.0,
                1.0]],
        "byValues": ["iOS",
            "Android",
            "js",
            "python"]
    },
    timeUnit: [{
        unit: "合计",
        value: "all"
    },
    {
        unit: "按天",
        value: "day"
    },
    {
        unit: "按周",
        value: "week"
    },
    {
        unit: "按月",
        value: "month"
    }],
    tags:['最大值','最小值','平均值','四分位','中位数'],

    /* data_type 为 bool 时选，没有 3 级信息 */
    boolOpts: [
        { key: 'isTrue', name: '为真' },
        { key: 'isFalse', name: '为假' },

        { key: 'isSet', name: '有值' },
        { key: 'notSet', name: '无值' },
    ],

    /* data_type 为 string 时选 */
    textOpts: [
        { key: 'equal', name: '等于' },             // 可输入多个字符串
        { key: 'notEqual', name: '不等于' },

        { key: 'contain', name: '包含' },
        { key: 'notContain', name: '不包含' },

        { key: 'isSet', name: '有值' },
        { key: 'notSet', name: '无值' },
        { key: 'isEmpty', name: '为空' },
        { key: 'isNotEmpty', name: '不为空' },

        // { key: 'rlike', name: '正则匹配' },
        // { key: 'notrlike', name: '正则不匹配' },
    ],

    /* data_type 为 number 时选 */
    numberOpts: [
        { key: 'equal', name: '等于' },         // 可输入多个数字
        { key: 'notEqual', name: '不等于' },

        { key: 'less', name: '小于' },          // 只需输入一个数字
        { key: 'greater', name: '大于' },

        { key: 'between', name: '区间' },       // 需输入 2 个数字，并且

        { key: 'isSet', name: '有值' },
        { key: 'notSet', name: '无值' },
    ],

    /* data_type 为 datetime 时选  */
    datetimeOpts: [
        { key: 'absolute_between', name: '绝对时间' },    // 任意时间区间（精确到分，但是好像是写死 00:00）
        { key: 'relative_within', name: '相对当前时间点', arr: [{ key: 'relative_within', name: '之内' }, { key: 'relative_before', name: '之前' }] },
        { key: 'relative_between', name: '相对当前时间区间' },
        { key: 'relative_event_time', name: '相对事件发生时间' },

        { key: 'isSet', name: '有值' },
        { key: 'notSet', name: '无值' },
    ],

    /* data_type 为 list 时选 */
    listOpts: [
        { key: 'contain', name: '包含' },
        { key: 'notContain', name: '不包含' },

        { key: 'isEmpty', name: '为空' },
        { key: 'isNotEmpty', name: '不为空' },

        { key: 'isSet', name: '有值' },
        { key: 'notSet', name: '无值' },
    ],

    // 相对事件发生时间 选项
    relativeEventTime: [
        { key: '+', name: '(现在) 之后' },
        { key: '-', name: '(现在) 之前' },
        { key: 'day', name: '今天' },
        { key: 'week', name: '本周' },
        { key: 'month', name: '本月' },
    ],

    // 漏斗窗口期
    defaultFunnelWindowsTimeList: [
        { label: "5分钟", value: "5" },
        { label: "1小时", value: "60" },
        { label: "当天", value: "-1" },
        { label: "24小时", value: "1440" },
        { label: "7天", value: "10080" },
        { label: "14天", value: "20160" },
        { label: "30天", value: "43200" },
        { label: "60天", value: "86400" },
        { label: "90天", value: "129600" },
        { label: "180天", value: "259200" },
        { label: "自定义", value: "自定义" }
    ],

    //自定义漏斗窗口期单位
    defaultTimeUnit: [
        {label: '天'},
        {label: '小时'},
        {label: '分钟'}
    ],

    // 自定义校验条件
    rules: {
        // 可输入多个值
        createCommon: {
            dataTypeArr: ['number', 'string'],      //第一个下拉框
            newDataTypeArr: ['equal', 'notEqual','contain','notContain'],  // equal 等于 | notEqual 不等于      第二个下拉框

            key: 'customArr',        //第三个下拉框
        },

        // 可输入单个值
        inputCommon: {
            dataTypeArr: ['number', 'string'],

            // less 小于 | greater 大于 | contain 包含 | notContain 不包含 | rlike 正则匹配 | notrlike 正则不匹配
            newDataTypeArr: ['less', 'greater', 'rlike', 'notrlike'],

            key: 'customStr',
        },

        // 数值区间
        numBetween: {
            dataTypeArr: ['number'],
            newDataTypeArr: ['between'],            // between 区间

            key: ['customNumBetween_0', 'customNumBetween_1'],
        },

        // 时间区间 默认
        autoDateBetween: {
            dataTypeArr: ['datetime'],
            newDataTypeArr: ['absolute_between'],   // absolute_between 绝对时间

            key: 'customAutoDateBetween',
        },

        // 相对当前时间点时
        relativeWithin: {
            dataTypeArr: ['datetime'],
            newDataTypeArr: ['relative_within'],   // relative_within 相对当前时间点

            key: ['customNumDate', 'customRelative'],
        },

        // 相对当前时间区间
        dayBetween: {
            dataTypeArr: ['datetime'],
            newDataTypeArr: ['relative_between'],   // relative_within 相对当前时间区间

            key: ['customNumDate_0', 'customNumDate_1'],
        },

        // 相对事件发生时间
        eventTime: {
            dataTypeArr: ['datetime'],
            newDataTypeArr: ['relative_event_time'],   // relative_event_time 相对时间发生时间

            key: ['customEventTime', 'customNumDate_2', 'customTimeUnit']
        },

    }
};
